################## 环境准备 ####################
# maven环境
# wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
# yum -y install apache-maven
# 切换阿里镜像
# vim /etc/maven/settings.xml
# <mirror>
#       <id>alimaven</id>
#       <name>aliyun maven</name>
#       <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
#       <mirrorOf>central</mirrorOf>
# </mirror>
# git 环境
# yum install git -y
# docker 环境
# docker-compose 工具

# cd ..
# mvn clean package -Dmaven.test.skip=true
# cd deploy
cp ../target/lamb-lite-1.0.0.jar ./lamb-lite.jar
docker build -t lamb-lite:v1.0.0 .
rm -f ./lamb-lite.jar
docker-compose -p lamb-lite-service up -d

